package com.ccsc.auth.service;

import com.ccsc.auth.entity.SysUser;
import com.ccsc.auth.entity.User;
import com.ccsc.auth.utils.DataMap;
import com.ccsc.auth.utils.Page;

import java.util.List;

/**
 * 用户service
 * Created by XingWen on 2016/3/29.
 */
public interface SysUserService {
    SysUser verifyAccount(DataMap params) throws Exception;					    //登录用户验证

    List<SysUser> getAllUsers() throws Exception;       						    //获取全部用户列表
    List<SysUser> getUsersByAccount(String account) throws Exception; 					//根据用户账号查用户信息

    Page getUsersByPage(DataMap params) throws Exception;					    //分页查询用户列表
    Page getUsersByPage(SysUser user, DataMap params) throws Exception;				//分页查询用户列表

    SysUser getUserById(Integer id) throws Exception;   						    //根据用户ID查用户信息
    SysUser getUserByAccount(String account) throws Exception; 					//根据用户账号查用户信息

    Integer createUser(SysUser user) throws Exception;  						    //添加用户
    Integer updateUser(SysUser user) throws Exception;   		   				    //修改用户
    Integer deleteUserById(Integer id) throws Exception; 					    //删除用户

}
